package com.yx.changdao.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.yx.changdao.common.entity.DepWorker;
import com.yx.changdao.common.mapper.DepWorkerMapper;
import com.yx.changdao.service.DepWorkerService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: <br/>
 * 部门工作人员
 * <p>
 * <br/>
 * @Auther: zcz
 * @create 2020/04/30 14:04
 */
@Service
public class DepWorkerServiceImpl extends ServiceImpl<DepWorkerMapper, DepWorker> implements DepWorkerService {
    @Override
    public List<DepWorker> byGroup(Integer groupId) {

        return list(new QueryWrapper<DepWorker>().eq(DepWorker.CONTACT_GROUP_ID, groupId));

    }
}
